/*
 * @Author: your name
 * @Date: 2021-01-26 11:07:26
 * @LastEditTime: 2021-01-27 16:29:28
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \tlwok-front-purchase-platfrom\src\mock\modules\purchase.js
 */
export default [
  {
    url: '/purchase/offlineOrder/pageList',
    result: {
      total: 999,
      'list|10': [
        {
          'id|+1': 1,
          createTime: 11111111111000,
          purchaseNo: 'GP11111111',
          purchaseName: 'test1',
          totalPrice: 12412,
          'deliveryState|1-3': 1,
          'payState|1-6': 1,
          'cancelState|1-2': 1,
          'payType|1-2': 1,
        },
      ],
    },
  },
  {
    url: '/purchase/offlineOrder/add',
    result: true,
  },
  {
    url: '/purchase/offlineOrder/confirmDelivery',
    result: true,
  },
  {
    url: '/purchase/offlineOrder/confirmFinish',
    result: true,
  },
  {
    url: '/purchase/offlineOrder/invalid',
    result: true,
  },
  {
    url: '/purchase/offlineOrder/applyPay',
    result: true,
  },
  {
    url: '/purchase/goods/importParsing',
    result: {
      'total|1-5': 1,
      list: [
        {
          'name|+1': 10000000,
          brand: '1233',
          attribute: '12344',
          num: 1,
          price: 1,
          picUrl: 'https://dummyimage.com/50x50/000/fff',
          source: 1,
        },
      ],
    },
  },
  {
    url: '/purchase/goods/upload',
    result: 'https://dummyimage.com/50x50/000/fff',
  },
  {
    url: '/purchase/goods/itemQuery',
    result: {
      total: 999,
      'list|10': [
        {
          cidLev1: 1,
          cidLev2: 2,
          cidLev3: 3,
          categoryNames: [
            '1/2/3',
            '1/2/3',
            '1/2/3',
          ],
          source: '1',
          name: '123',
          brand: '1233',
          attribute: '12344',
          referencePrice: 1,
          picUrl: 'https://dummyimage.com/50x50/ff0000/fff',
        },
      ],
    },
  },
  {
    url: '/purchase/offlineOrder/detail',
    result: {
      id: 1,
      createTime: 11111111111,
      purchaseNo: 'GP11111111',
      purchaseName: 'test1',
      deliveryState: 1,
      payState: 1,
      supplierCompanyName: 1,
      supplierMobile: 1,
      consigneeName: '123',
      consigneeMobile: '123',
      consigneeFullAddress: '1231332',
      accountSupplierName: '123',
      accountSupplierCompanyName: '123',
      accountSupplierMobile: '123',
      accountName: '123',
      accountNumber: '123',
      bankName: '123',
      totalPrice: 123,
      consigneeProvinceId: 123123,
      consigneeCityId: 124124,
      consigneeCountyId: 123,
      consigneeDetailAddress: '123',
      orderItems: [
        {
          type: 1,
          name: '123',
          categoryNames: [
            '1/2/3',
          ],
          cidLev1: 1,
          cidLev2: 2,
          cidLev3: 3,
          brand: '1233',
          attribute: '12344',
          referencePrice: 1,
          price: 1,
          picUrl: '123',
          num: 1,
          totalPrice: 123,
          source: 1,
        },
        {
          type: 2,
          name: '123',
          categoryNames: [
            '1/2/3',
          ],
          cidLev1: 1,
          cidLev2: 2,
          cidLev3: 3,
          brand: '1233',
          attribute: '12344',
          referencePrice: 1,
          price: 1,
          picUrl: '123',
          num: 1,
          totalPrice: 123,
          source: 1,
        },
      ],
    },
  },
  {
    url: '/purchase/categoryList',
    result: [
      {
        id: 1,
        pid: 2,
        name: '类目一',
        level: '1',
        childs: [{
          id: 2,
          pid: 1,
          name: '类目二',
          level: '2',
          childs: [{
            id: 3,
            pid: 2,
            name: '类目三',
            level: '3',
          }],
        }],
      },
    ],
  },
  {
    url: '/purchase/goods/add',
    result: true,
  },
  {
    url: '/purchase/goods/update',
    result: true,
  },
  {
    url: '/purchase/goods/delete',
    result: true,
  },
  {
    url: '/purchase/offlineOrder/downloadPayVoucher',
    result: {
      url: 'https://xxxxxxxxx',
      createTime: 111111111,
    },
  },
  {
    url: '/purchase/dataReport/report',
    result: {
      totalSupplierNum: 22,
      totalOrderNum: 100,
      totalOrderPrice: 10000,
      purchaserList: [
        {
          purchaserName: 'sunyin',
          orderNums: 100,
          orderPrices: 10000,
        },
      ],
    },
  }, {
    url: '/onlineOrder/pageList',
    result: {
      total: 999,
      'list|10': [
        {
          'id|+1': 1,
          orderTime: 11111111111000,
          purchaseNo: 'GP11111111',
          purchaseName: 'test1',
          shopName: 'test1-1',
          paymentPrice: 12412,
          'orderState|0-5': 0,
          'refund|1-3': 1,
        },
      ],
    },
  },
  {
    url: '/supplier/manage/pageList',
    result: {
      total: 999,
      'list|10': [
        {
          createTime: 1610964670000,
          companyName: '天章实业集团',
          categoryName: '办公纸品、办公耗材',
          recommendUserName: 'wu',
          companyFullAddress: '广东省珠海市香洲区广东省珠海市香洲区吉大',
          contactName: '张三',
          contactPhone: '15811111111',
        },
      ],
    },
  },
  {
    url: '/purchase/goods/pageList',
    result: {
      total: 999,
      'list|10': [
        {
          'id|+1': 1,
          name: '高达',
          brand: '万代',
          cidLev1: 1,
          cidLev2: 2,
          cidLev3: 3,
          attribute: '×××',
          referencePrice: 123,
          picUrl:
            'https://pic1.zhimg.com/v2-c38b733c511e916e2fe40380358d617a_r.jpg',
          commodityCategory: '桌面办公/剪刀/美工刀/铭恒',
        },
      ],
    },
  },
];
